#!/usr/bin/env python

import sys
import re

for line in sys.stdin:
    m1 = re.search(r'End of calculation', line)
    if m1:
        print 'Time: ' + line.split()[4]
